<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Automatically following indices | ElasticSearch 7.7 权威指南中文版</title>
	<meta name="keywords" content="ElasticSearch 权威指南中文版, elasticsearch 7, es7, 实时数据分析，实时数据检索" />
    <meta name="description" content="ElasticSearch 权威指南中文版, elasticsearch 7, es7, 实时数据分析，实时数据检索" />
    <!-- Give IE8 a fighting chance -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
	<link rel="stylesheet" type="text/css" href="../static/styles.css" />
	<script>
	var _link = 'ccr-auto-follow.html';
    </script>
</head>
<body>
<div class="main-container">
    <section id="content">
        <div class="content-wrapper">
            <section id="guide" lang="zh_cn">
                <div class="container">
                    <div class="row">
                        <div class="col-xs-12 col-sm-8 col-md-8 guide-section">
                            <div style="color:gray; word-break: break-all; font-size:12px;">原英文版地址: <a href="https://www.elastic.co/guide/en/elasticsearch/reference/7.7/ccr-auto-follow.html" rel="nofollow" target="_blank">https://www.elastic.co/guide/en/elasticsearch/reference/7.7/ccr-auto-follow.html</a>, 原文档版权归 www.elastic.co 所有<br/>本地英文版地址: <a href="../en/ccr-auto-follow.html" rel="nofollow" target="_blank">../en/ccr-auto-follow.html</a></div>
                        <!-- start body -->
                  <div class="page_header">
<strong>重要</strong>: 此版本不会发布额外的bug修复或文档更新。最新信息请参考 <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html" rel="nofollow">当前版本文档</a>。
</div>
<div id="content">
<div class="breadcrumbs">
<span class="breadcrumb-link"><a href="index.html">Elasticsearch Guide [7.7]</a></span>
»
<span class="breadcrumb-link"><a href="high-availability.html">Set up a cluster for high availability</a></span>
»
<span class="breadcrumb-link"><a href="xpack-ccr.html">Cross-cluster replication</a></span>
»
<span class="breadcrumb-node">Automatically following indices</span>
</div>
<div class="navheader">
<span class="prev">
<a href="ccr-requirements.html">« Requirements for leader indices</a>
</span>
<span class="next">
<a href="ccr-getting-started.html">Getting started with cross-cluster replication »</a>
</span>
</div>
<div class="section xpack">
<div class="titlepage"><div><div>
<h2 class="title">
<a id="ccr-auto-follow"></a>Automatically following indices<a class="edit_me edit_me_private" rel="nofollow" title="Editing on GitHub is available to Elastic" href="https://github.com/elastic/elasticsearch/edit/7.7/docs/reference/ccr/auto-follow.asciidoc">edit</a><a class="xpack_tag" href="https://www.elastic.co/subscriptions"></a>
</h2>
</div></div></div>
<p>In time series use cases where you want to follow new indices that are
periodically created (such as daily Beats indices), manually configuring follower
indices for each new leader index can be an operational burden. The auto-follow
functionality in cross-cluster replication is aimed at easing this burden. With the auto-follow
functionality, you can specify that new indices in a remote cluster that have a
name that matches a pattern are automatically followed.</p>
<div class="section">
<div class="titlepage"><div><div>
<h3 class="title">
<a id="_managing_auto_follow_patterns"></a>Managing auto-follow patterns<a class="edit_me edit_me_private" rel="nofollow" title="Editing on GitHub is available to Elastic" href="https://github.com/elastic/elasticsearch/edit/7.7/docs/reference/ccr/auto-follow.asciidoc">edit</a>
</h3>
</div></div></div>
<p>You can add a new auto-follow pattern configuration with the
<a href="ccr-put-auto-follow-pattern.html" class="ulink" target="_top">create auto-follow pattern API</a>.  When you create
a new auto-follow pattern configuration, you are configuring a collection of
patterns against a single remote cluster. Any time a new index with a name that
matches one of the patterns in the collection is created in the remote cluster,
a follower index is configured in the local cluster. The follower index uses the
new index as its leader index.</p>
<p>You can inspect all configured auto-follow pattern collections with the
<a href="ccr-get-auto-follow-pattern.html" class="ulink" target="_top">get auto-follow pattern API</a>. Auto-follow patterns
can be paused using the <a href="ccr-pause-auto-follow-pattern.html" class="ulink" target="_top">pause auto-follow pattern API</a>
 and can be resumed using the <a href="ccr-resume-auto-follow-pattern.html" class="ulink" target="_top">resume auto-follow pattern API</a>.
  To delete a configured auto-follow pattern collection, use the
<a href="ccr-delete-auto-follow-pattern.html" class="ulink" target="_top">delete auto-follow pattern API</a>.</p>
<p>Since auto-follow functionality is handled automatically in the background on
your behalf, error reporting is done through logs on the elected master node
and through the <a href="ccr-get-stats.html" class="ulink" target="_top">cross-cluster replication stats API</a>.</p>
</div>

</div>
<div class="navfooter">
<span class="prev">
<a href="ccr-requirements.html">« Requirements for leader indices</a>
</span>
<span class="next">
<a href="ccr-getting-started.html">Getting started with cross-cluster replication »</a>
</span>
</div>
</div>

                  <!-- end body -->
                        </div>
                        <div class="col-xs-12 col-sm-4 col-md-4" id="right_col">
                        
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </section>
</div>
<script src="../static/cn.js"></script>
</body>
</html>